package com.java.base.exercise.designmode.adpect;

/**
 * @Author RenPu
 * @Date 2023/4/19 16:54
 * @Version 1.0
 * @Description: 小野dog适配器，让小野鸭模拟小野dog叫
 **/
public class WhildDogAdpect implements Dog {

    private Duck duck;

    public WhildDogAdpect(Duck duck) {
        this.duck = duck;
    }

    @Override
    public String wangwang() {
        return duck.gaga();
    }
}
